home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4466 < prev    next >
Encoding:
Text File  |  1996-08-06  |  688 b   |  29 lines

  1. Path: EU.net!sun4nl!xs4all!usenet
  2. From: maris@xs4all.nl (Anthony Moendir)
  3. Newsgroups: comp.lang.c++
  4. Subject: Newbie: Simple Button Question
  5. Date: Tue, 30 Jan 1996 23:21:13 GMT
  6. Organization: XS4ALL, networking for the masses
  7. Message-ID: <4el9ft$h1t@news.xs4all.nl>
  8. NNTP-Posting-Host: ztm02-06.dial.xs4all.nl
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11. Can anyone tell me wat's wrong with this code?
  12. The button does'n work
  13.  
  14. Thanx Anthony
  15.  
  16.  
  17. #include <owl\button.h>
  18.  
  19. const WORD ID_BUTTON = 100;
  20.  
  21. DEFINE_RESPONSE_TABLE1(TPespMainWindow, TDecoratedFrame)
  22.   EV_COMMAND(ID_BUTTON, FUNC),
  23. END_RESPONSE_TABLE;
  24.  
  25. //In constructor
  26. new TButton(this, ID_BUTTON, "Do something",   498 , 12, 150, 30,
  27. FALSE);
  28.  
  29.